home *** CD-ROM | disk | FTP | other *** search
/ PC Users 1999 April / Cd Pc Users extra 19 abril 1999.iso / Prog / Inst / Js02 / js02.exe / jscripts / animlyv01.js < prev    next >
Encoding:
JavaScript  |  1998-11-26  |  937 b   |  32 lines

  1. //
  2. // ANIMATION FOR LAYER or DIV OBJECTS VERSION 1
  3. //
  4. // Software Applications for Web Objects (SAWO)
  5. // Created: November 26-1998
  6. //----------------------------------------------
  7. // jjpub=0 init value
  8. // nbly: nb of layer
  9. // ly1: parent object
  10. // ly2: child object
  11. //
  12. function animlayer(signe_browser,ly1,ly2,jjpub,nbly,timer) {
  13.     for (var i = 1; i < nbly+1; i++){
  14.         var lay=ly2+i;
  15.         if (signe_browser==0) document[ly1].document[lay].visibility="hidden";
  16.         if (signe_browser==1) document.all[ly1].document.all[lay].style.visibility="hidden";
  17.  
  18.     }
  19.     jjpub=jjpub+1;
  20.     if (jjpub==nbly+1) jjpub=1;
  21.     var lay=ly2+jjpub;
  22.     if (signe_browser==0) document[ly1].document[lay].visibility="inherit";
  23.     if (signe_browser==1) document.all[ly1].document.all[lay].style.visibility="inherit";
  24.     var timeout_id_animlayer = setTimeout("animlayer("+signe_browser+",'"+ly1+"','"+ly2+"',"+jjpub+","+nbly+","+timer+")",timer);
  25. }
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.